package com.ruoyi.constant;

/**
 * 处置类型
 */
public enum RwtzCzlxEnum {

    CZLX_ZHENGGAI(1, "整改"),
    CZLX_CHUFA(2, "处罚");


    private Integer code;
    private String desc;

    RwtzCzlxEnum(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public Integer getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }

    public static String getDescByCode(Integer code) {
        for (RwtzCzlxEnum value : RwtzCzlxEnum.values()) {
            if (value.getCode().equals(code)) {
                return value.getDesc();
            }
        }
        return "";
    }
}
